﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript">
    var x = 300;
    var y = 300;
    var timeId = setInterval(function() {

        if (window.screenTop >= 200) {
            window.resizeBy(-10, -10);
        }
        else {
            window.moveBy(50, 50);
        }
    }, 1000);
</script>
</head>

<body>
<button onclick="window.close();">Create pop-up!</button>
</body>
